package com.yzqp.common.mvc.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 基础分页form
 */
@Data
public class BasePageForm {

    @NotNull(message = "当前页码不能为空")
    @ApiModelProperty("当前页码")
    private int current = 1;

    @NotNull(message = "每页大小不能为空")
    @ApiModelProperty("每页大小")
    private int size = 10;
}
